home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / networking / pgpuam / sources / fatcr ppc.r < prev    next >
Encoding:
Text File  |  2000-06-23  |  992 b   |  30 lines

  1.  
  2. #include "MixedMode.r"
  3.  
  4. /*
  5. Use the project ProcInfo.π to determine the correct value for the ProcInfo field below.
  6.  
  7. A single '$' means a hex value.  You can also use the C format of 0x... if you want.
  8. Run ProcInfo.π to prove for yourself that a C routine (kCStackBased) that has no
  9. arguments and returns void has a ProcInfo of $1 or 0x1.
  10. Two dollar signs indicate a rez variable, as in $$Resource.  $$Resource tells rez 
  11. to read the resource fork of a file and return, as a string, the data of a resource 
  12. of a certain type and ID.
  13.  
  14.  
  15. Use type 'MWCW' as 'fdes'; if you want a fat resource.
  16. */
  17.  
  18.  
  19. type 'uamc' as 'sdes';
  20.  
  21. resource 'uamc'  (0, "PGP UAM Code resource",sysheap) {
  22.     $0,                                                    // 68K ProcInfo
  23.     $00E0,                                                // PowerPC ProcInfo
  24.     "",                                                    // Specify filename, type, and ID of resource
  25.                                                         //   containing 68k code
  26.     $$Resource("PGP client UAM-PPC", 'uamc', 0)            // Specify filename, type, and ID of resource
  27.                                                         //   containing a pef container
  28. };
  29.  
  30.